package org.jet.emall.prod.po;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品库存表
 * </p>
 *
 * @author xiaozai
 * @since 2020-04-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_warehouse_product")
@ApiModel(value="WarehouseProduct对象", description="商品库存表")
public class WarehouseProduct implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "商品库存ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "商品SKU ID")
    private Long skuId;

    @ApiModelProperty(value = "仓库ID")
    private Integer warehouseId;

    @ApiModelProperty(value = "当前商品数量")
    private Integer currentCount;

    @ApiModelProperty(value = "当前占用数量")
    private Integer lockCount;

    @ApiModelProperty(value = "在途数量")
    private Integer inTransitCount;

    @ApiModelProperty(value = "移动加权成本")
    private Long averageCost;

    @TableLogic
    @ApiModelProperty(value = "逻辑删除: 1-已删除, 0-未删除")
    private Byte deleted;

    @ApiModelProperty(value = "最后修改时间")
    private LocalDateTime modifiedTime;


}
